<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<script type="text/javascript" src="../lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="../lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
<script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>通用上传文件</title>
</head>
<body>
    <div class="pt-5  pl-20 pr-20 pb-20">
        <input type="hidden" id="hcrainimgid" name="hcrainimgid" value="" />
         <div class="row cl">
               <div class="col-12">
                <div id="uploadfileQueue" style="padding: 3px;"></div>
                <div id="file_upload"></div>
            </div>
             </div>
        <div class="row cl">
            <div class="col-2"><img id="imgExist" src="../defaultimg/hcrainaddimg.jpg" width="180px" height="180px"></div>
        </div>
        <div class="row cl fixed-bottom">
            <div class="col-3 col-offset-9">
				<button onclick="layer_closethis();" class="btn btn-primary radius" type="button">确定</button>
            </div>
        </div>

    </div>
   
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
 

    <!-- 文件上传方法SSSSSSSSSSSSSSS-->
    <link href="../uploadifyjs/uploadify.css" rel="stylesheet" type="text/css" />
    <script src="../uploadifyjs/swfobject.js" type="text/javascript"></script>
    <script src="../uploadifyjs/jquery.uploadify.min.js" type="text/javascript"></script>
     <script type="text/javascript" src="../newbasejs/uploadifyui_auto.js"></script>
    <!-- 文件上传方法EEEEEEEEEEEEEEE-->
    <script type="text/javascript">
        var Mhcimgid = "#hcrainimgid";//文件上传后，会将ID设置这个控件
        var parentId = "#finfoimg1";
        var parentImgId = "#imgExist";
        parentId = "#" + getUrlParam("imgsaveid");//保存文件ID 的控件ID
        parentImgId = "#" + getUrlParam("imgshowid");//图片显示 文件ID 的控件ID

        function layer_closethis() {
            var index = parent.layer.getFrameIndex(window.name);
            parent.$(parentId).val($("#hcrainimgid").val());
            parent.$(parentImgId).attr("src", "../ashx/GetPhotoHandler.ashx?mid=" + $("#hcrainimgid").val());
            parent.layer.close(index);
        }
    </script>
</body>
</html>
